package com.sansan.qiangji.service.impl.warehouse;

import com.sansan.qiangji.entity.warehouse.PushOrder;
import com.sansan.qiangji.entity.warehouse.example.PushOrderExample;
import com.sansan.qiangji.mapper.warehouse.PushOrderMapper;
import com.sansan.qiangji.service.inter.warehouse.PushOrderService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Slf4j
@Service
public class PushOrderServiceImpl implements PushOrderService {

    @Autowired
    private PushOrderMapper pushOrderMapper;

    @Override
    public long countByExample(PushOrderExample example) {
        return pushOrderMapper.countByExample(example);
    }

    @Override
    public int deleteByExample(PushOrderExample example) {
        return pushOrderMapper.deleteByExample(example);
    }

    @Override
    public int deleteByPrimaryKey(Integer pushOrderId) {
        return pushOrderMapper.deleteByPrimaryKey(pushOrderId);
    }

    @Override
    public int insert(PushOrder record) {
        return pushOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(PushOrder record) {
        return pushOrderMapper.insertSelective(record);
    }

    @Override
    public List<PushOrder> selectByExample(PushOrderExample example) {
        return pushOrderMapper.selectByExample(example);
    }

    @Override
    public PushOrder selectByPrimaryKey(Integer pushOrderId) {
        return pushOrderMapper.selectByPrimaryKey(pushOrderId);
    }

    @Override
    public int updateByExampleSelective(PushOrder record, PushOrderExample example) {
        return pushOrderMapper.updateByExampleSelective(record,example);
    }

    @Override
    public int updateByExample(PushOrder record, PushOrderExample example) {
        return pushOrderMapper.updateByExample(record,example);
    }

    @Override
    public int updateByPrimaryKeySelective(PushOrder record) {
        return pushOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(PushOrder record) {
        return pushOrderMapper.updateByPrimaryKey(record);
    }
}
